using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter39
{
	/// <summary>
	/// Example10: Linear Momentum of an Electron
	/// An electron, which has a mass of 9.11 \times 10^{-31} kg, 
	/// moves with a speed of 0.750c. 
	/// Find its relativistic momentum and compare this 
	/// value with the momentum calculated from the classical expression. 
	/// </summary>
	public class Example10
	{
		public Example10()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Velocity u = new L.Velocity();
			u.X = 0.75*L.Constant.SpeedOfLightInVacuum;
			L.Mass m = new L.Mass();
			m.kg = L.Constant.ElectronMass;
		    L.Vector p = L.Relativity.Momentum(m,u);
			result+=Convert.ToString(p.Norm)+"\r\n";  
		}
	}
}
